import React, { Component } from 'react';
import HomePage from './page/homePage';
import Todo from './page/todo';
import {Router, Route, hashHistory, browserHistory} from 'react-router';
import './App.css';

class App extends Component {
  componentDidMount(){
    document.title = "React Test";
  }

  render() {
    return (
      <Router history={hashHistory}>
        <Route path="/" component={HomePage}></Route>
        <Route path="/todo" component={Todo}></Route>
      </Router>
    );
  }
}
export default App;